package com.openlab.service.basic.epidemic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.openlab.service.basic.epidemic.dto.WechatMpUserDto;
import com.openlab.service.basic.epidemic.entity.WechatMpUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface WechatMpUserMapper extends BaseMapper<WechatMpUser> {

    @Select("select id,real_name,phone,avatar_url from ejyy_wechat_mp_user where phone = #{phone} and intact = true;")
    WechatMpUserDto selectOwer(@Param("phone") String phone);
}
